3.7.33 \(\int \frac {\sqrt {a+c x^2}}{(d+e x) \sqrt {f+g x}} \, dx\) [633]

Optimal. Leaf size=473 \[ -\frac {2 \sqrt {-a} \sqrt {c} \sqrt {f+g x} \sqrt {1+\frac {c x^2}{a}} E\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e g \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {a+c x^2}}+\frac {2 \sqrt {-a} \sqrt {c} (e f+d g) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 g \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {2 \left (c d^2+a e^2\right ) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} \Pi \left (\frac {2 e}{\frac {\sqrt {c} d}{\sqrt {-a}}+e};\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|\frac {2 \sqrt {-a} g}{\sqrt {c} f+\sqrt {-a} g}\right )}{e^2 \left (\frac {\sqrt {c} d}{\sqrt {-a}}+e\right ) \sqrt {f+g x} \sqrt {a+c x^2}} \]

[Out]

-2*EllipticE(1/2*(1-x*c^(1/2)/(-a)^(1/2))^(1/2)*2^(1/2),(-2*a*g/(-a*g+f*(-a)^(1/2)*c^(1/2)))^(1/2))*(-a)^(1/2)
*c^(1/2)*(g*x+f)^(1/2)*(c*x^2/a+1)^(1/2)/e/g/(c*x^2+a)^(1/2)/((g*x+f)*c^(1/2)/(g*(-a)^(1/2)+f*c^(1/2)))^(1/2)+
2*(d*g+e*f)*EllipticF(1/2*(1-x*c^(1/2)/(-a)^(1/2))^(1/2)*2^(1/2),(-2*a*g/(-a*g+f*(-a)^(1/2)*c^(1/2)))^(1/2))*(
-a)^(1/2)*c^(1/2)*(c*x^2/a+1)^(1/2)*((g*x+f)*c^(1/2)/(g*(-a)^(1/2)+f*c^(1/2)))^(1/2)/e^2/g/(g*x+f)^(1/2)/(c*x^
2+a)^(1/2)-2*(a*e^2+c*d^2)*EllipticPi(1/2*(1-x*c^(1/2)/(-a)^(1/2))^(1/2)*2^(1/2),2*e/(e+d*c^(1/2)/(-a)^(1/2)),
2^(1/2)*(g*(-a)^(1/2)/(g*(-a)^(1/2)+f*c^(1/2)))^(1/2))*(c*x^2/a+1)^(1/2)*((g*x+f)*c^(1/2)/(g*(-a)^(1/2)+f*c^(1
/2)))^(1/2)/e^2/(e+d*c^(1/2)/(-a)^(1/2))/(g*x+f)^(1/2)/(c*x^2+a)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.42, antiderivative size = 473, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 9, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.321, Rules used = {937, 947, 174, 552, 551, 858, 733, 435, 430} \begin {gather*} -\frac {2 \sqrt {\frac {c x^2}{a}+1} \left (a e^2+c d^2\right ) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {-a} g+\sqrt {c} f}} \Pi \left (\frac {2 e}{\frac {\sqrt {c} d}{\sqrt {-a}}+e};\text {ArcSin}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|\frac {2 \sqrt {-a} g}{\sqrt {c} f+\sqrt {-a} g}\right )}{e^2 \sqrt {a+c x^2} \sqrt {f+g x} \left (\frac {\sqrt {c} d}{\sqrt {-a}}+e\right )}+\frac {2 \sqrt {-a} \sqrt {c} \sqrt {\frac {c x^2}{a}+1} (d g+e f) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {-a} g+\sqrt {c} f}} F\left (\text {ArcSin}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 g \sqrt {a+c x^2} \sqrt {f+g x}}-\frac {2 \sqrt {-a} \sqrt {c} \sqrt {\frac {c x^2}{a}+1} \sqrt {f+g x} E\left (\text {ArcSin}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e g \sqrt {a+c x^2} \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {-a} g+\sqrt {c} f}}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + c*x^2]/((d + e*x)*Sqrt[f + g*x]),x]

[Out]

(-2*Sqrt[-a]*Sqrt[c]*Sqrt[f + g*x]*Sqrt[1 + (c*x^2)/a]*EllipticE[ArcSin[Sqrt[1 - (Sqrt[c]*x)/Sqrt[-a]]/Sqrt[2]
], (-2*a*g)/(Sqrt[-a]*Sqrt[c]*f - a*g)])/(e*g*Sqrt[(Sqrt[c]*(f + g*x))/(Sqrt[c]*f + Sqrt[-a]*g)]*Sqrt[a + c*x^
2]) + (2*Sqrt[-a]*Sqrt[c]*(e*f + d*g)*Sqrt[(Sqrt[c]*(f + g*x))/(Sqrt[c]*f + Sqrt[-a]*g)]*Sqrt[1 + (c*x^2)/a]*E
llipticF[ArcSin[Sqrt[1 - (Sqrt[c]*x)/Sqrt[-a]]/Sqrt[2]], (-2*a*g)/(Sqrt[-a]*Sqrt[c]*f - a*g)])/(e^2*g*Sqrt[f +
 g*x]*Sqrt[a + c*x^2]) - (2*(c*d^2 + a*e^2)*Sqrt[(Sqrt[c]*(f + g*x))/(Sqrt[c]*f + Sqrt[-a]*g)]*Sqrt[1 + (c*x^2
)/a]*EllipticPi[(2*e)/((Sqrt[c]*d)/Sqrt[-a] + e), ArcSin[Sqrt[1 - (Sqrt[c]*x)/Sqrt[-a]]/Sqrt[2]], (2*Sqrt[-a]*
g)/(Sqrt[c]*f + Sqrt[-a]*g)])/(e^2*((Sqrt[c]*d)/Sqrt[-a] + e)*Sqrt[f + g*x]*Sqrt[a + c*x^2])

Rule 174

Int[1/(((a_.) + (b_.)*(x_))*Sqrt[(c_.) + (d_.)*(x_)]*Sqrt[(e_.) + (f_.)*(x_)]*Sqrt[(g_.) + (h_.)*(x_)]), x_Sym
bol] :> Dist[-2, Subst[Int[1/(Simp[b*c - a*d - b*x^2, x]*Sqrt[Simp[(d*e - c*f)/d + f*(x^2/d), x]]*Sqrt[Simp[(d
*g - c*h)/d + h*(x^2/d), x]]), x], x, Sqrt[c + d*x]], x] /; FreeQ[{a, b, c, d, e, f, g, h}, x] && GtQ[(d*e - c
*f)/d, 0]

Rule 430

Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_)^2]), x_Symbol] :> Simp[(1/(Sqrt[a]*Sqrt[c]*Rt[-d/c, 2]
))*EllipticF[ArcSin[Rt[-d/c, 2]*x], b*(c/(a*d))], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && Gt
Q[a, 0] &&  !(NegQ[b/a] && SimplerSqrtQ[-b/a, -d/c])

Rule 435

Int[Sqrt[(a_) + (b_.)*(x_)^2]/Sqrt[(c_) + (d_.)*(x_)^2], x_Symbol] :> Simp[(Sqrt[a]/(Sqrt[c]*Rt[-d/c, 2]))*Ell
ipticE[ArcSin[Rt[-d/c, 2]*x], b*(c/(a*d))], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[a, 0
]

Rule 551

Int[1/(((a_) + (b_.)*(x_)^2)*Sqrt[(c_) + (d_.)*(x_)^2]*Sqrt[(e_) + (f_.)*(x_)^2]), x_Symbol] :> Simp[(1/(a*Sqr
t[c]*Sqrt[e]*Rt[-d/c, 2]))*EllipticPi[b*(c/(a*d)), ArcSin[Rt[-d/c, 2]*x], c*(f/(d*e))], x] /; FreeQ[{a, b, c,
d, e, f}, x] &&  !GtQ[d/c, 0] && GtQ[c, 0] && GtQ[e, 0] &&  !( !GtQ[f/e, 0] && SimplerSqrtQ[-f/e, -d/c])

Rule 552

Int[1/(((a_) + (b_.)*(x_)^2)*Sqrt[(c_) + (d_.)*(x_)^2]*Sqrt[(e_) + (f_.)*(x_)^2]), x_Symbol] :> Dist[Sqrt[1 +
(d/c)*x^2]/Sqrt[c + d*x^2], Int[1/((a + b*x^2)*Sqrt[1 + (d/c)*x^2]*Sqrt[e + f*x^2]), x], x] /; FreeQ[{a, b, c,
 d, e, f}, x] &&  !GtQ[c, 0]

Rule 733

Int[((d_) + (e_.)*(x_))^(m_)/Sqrt[(a_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2*a*Rt[-c/a, 2]*(d + e*x)^m*(Sqrt[1
+ c*(x^2/a)]/(c*Sqrt[a + c*x^2]*(c*((d + e*x)/(c*d - a*e*Rt[-c/a, 2])))^m)), Subst[Int[(1 + 2*a*e*Rt[-c/a, 2]*
(x^2/(c*d - a*e*Rt[-c/a, 2])))^m/Sqrt[1 - x^2], x], x, Sqrt[(1 - Rt[-c/a, 2]*x)/2]], x] /; FreeQ[{a, c, d, e},
 x] && NeQ[c*d^2 + a*e^2, 0] && EqQ[m^2, 1/4]

Rule 858

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Dist[g/e, Int[(d
+ e*x)^(m + 1)*(a + c*x^2)^p, x], x] + Dist[(e*f - d*g)/e, Int[(d + e*x)^m*(a + c*x^2)^p, x], x] /; FreeQ[{a,
c, d, e, f, g, m, p}, x] && NeQ[c*d^2 + a*e^2, 0] &&  !IGtQ[m, 0]

Rule 937

Int[Sqrt[(a_) + (c_.)*(x_)^2]/(((d_.) + (e_.)*(x_))*Sqrt[(f_.) + (g_.)*(x_)]), x_Symbol] :> Dist[(c*d^2 + a*e^
2)/e^2, Int[1/((d + e*x)*Sqrt[f + g*x]*Sqrt[a + c*x^2]), x], x] - Dist[1/e^2, Int[(c*d - c*e*x)/(Sqrt[f + g*x]
*Sqrt[a + c*x^2]), x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && NeQ[c*d^2 + a*e^2, 0]

Rule 947

Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(f_.) + (g_.)*(x_)]*Sqrt[(a_) + (c_.)*(x_)^2]), x_Symbol] :> With[{q = Rt[-c/
a, 2]}, Dist[Sqrt[1 + c*(x^2/a)]/Sqrt[a + c*x^2], Int[1/((d + e*x)*Sqrt[f + g*x]*Sqrt[1 - q*x]*Sqrt[1 + q*x]),
 x], x]] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && NeQ[c*d^2 + a*e^2, 0] &&  !GtQ[a, 0]

Rubi steps

\begin {align*} \int \frac {\sqrt {a+c x^2}}{(d+e x) \sqrt {f+g x}} \, dx &=\left (a+\frac {c d^2}{e^2}\right ) \int \frac {1}{(d+e x) \sqrt {f+g x} \sqrt {a+c x^2}} \, dx-\frac {\int \frac {c d-c e x}{\sqrt {f+g x} \sqrt {a+c x^2}} \, dx}{e^2}\\ &=\frac {c \int \frac {\sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx}{e g}-\frac {(c (e f+d g)) \int \frac {1}{\sqrt {f+g x} \sqrt {a+c x^2}} \, dx}{e^2 g}+\frac {\left (\left (a+\frac {c d^2}{e^2}\right ) \sqrt {1+\frac {c x^2}{a}}\right ) \int \frac {1}{\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}} \sqrt {1+\frac {\sqrt {c} x}{\sqrt {-a}}} (d+e x) \sqrt {f+g x}} \, dx}{\sqrt {a+c x^2}}\\ &=-\frac {\left (2 \left (a+\frac {c d^2}{e^2}\right ) \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2-x^2} \left (\frac {\sqrt {c} d}{\sqrt {-a}}+e-e x^2\right ) \sqrt {f+\frac {\sqrt {-a} g}{\sqrt {c}}-\frac {\sqrt {-a} g x^2}{\sqrt {c}}}} \, dx,x,\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}\right )}{\sqrt {a+c x^2}}+\frac {\left (2 a \sqrt {c} \sqrt {f+g x} \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {\sqrt {1+\frac {2 a \sqrt {c} g x^2}{\sqrt {-a} \left (c f-\frac {a \sqrt {c} g}{\sqrt {-a}}\right )}}}{\sqrt {1-x^2}} \, dx,x,\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )}{\sqrt {-a} e g \sqrt {\frac {c (f+g x)}{c f-\frac {a \sqrt {c} g}{\sqrt {-a}}}} \sqrt {a+c x^2}}-\frac {\left (2 a \sqrt {c} (e f+d g) \sqrt {\frac {c (f+g x)}{c f-\frac {a \sqrt {c} g}{\sqrt {-a}}}} \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1+\frac {2 a \sqrt {c} g x^2}{\sqrt {-a} \left (c f-\frac {a \sqrt {c} g}{\sqrt {-a}}\right )}}} \, dx,x,\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )}{\sqrt {-a} e^2 g \sqrt {f+g x} \sqrt {a+c x^2}}\\ &=-\frac {2 \sqrt {-a} \sqrt {c} \sqrt {f+g x} \sqrt {1+\frac {c x^2}{a}} E\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e g \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {a+c x^2}}+\frac {2 \sqrt {-a} \sqrt {c} (e f+d g) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 g \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {\left (2 \left (a+\frac {c d^2}{e^2}\right ) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2-x^2} \left (\frac {\sqrt {c} d}{\sqrt {-a}}+e-e x^2\right ) \sqrt {1-\frac {\sqrt {-a} g x^2}{\sqrt {c} \left (f+\frac {\sqrt {-a} g}{\sqrt {c}}\right )}}} \, dx,x,\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}\right )}{\sqrt {f+g x} \sqrt {a+c x^2}}\\ &=-\frac {2 \sqrt {-a} \sqrt {c} \sqrt {f+g x} \sqrt {1+\frac {c x^2}{a}} E\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e g \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {a+c x^2}}+\frac {2 \sqrt {-a} \sqrt {c} (e f+d g) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 g \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {2 \left (a+\frac {c d^2}{e^2}\right ) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} \Pi \left (\frac {2 e}{\frac {\sqrt {c} d}{\sqrt {-a}}+e};\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|\frac {2 \sqrt {-a} g}{\sqrt {c} f+\sqrt {-a} g}\right )}{\left (\frac {\sqrt {c} d}{\sqrt {-a}}+e\right ) \sqrt {f+g x} \sqrt {a+c x^2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 23.04, size = 1096, normalized size = 2.32 \begin {gather*} -\frac {2 \left (-c e^2 f^3 \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}+c d e f^2 g \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}-a e^2 f g^2 \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}+a d e g^3 \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}+2 c e^2 f^2 \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (f+g x)-2 c d e f g \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (f+g x)-c e^2 f \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (f+g x)^2+c d e g \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (f+g x)^2+\sqrt {c} e \left (-i \sqrt {c} f+\sqrt {a} g\right ) (-e f+d g) \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} (f+g x)^{3/2} E\left (i \sinh ^{-1}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )+e \left (i \sqrt {c} d+\sqrt {a} e\right ) g \left (\sqrt {c} f+i \sqrt {a} g\right ) \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} (f+g x)^{3/2} F\left (i \sinh ^{-1}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )-i c d^2 g^2 \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} (f+g x)^{3/2} \Pi \left (\frac {\sqrt {c} (e f-d g)}{e \left (\sqrt {c} f+i \sqrt {a} g\right )};i \sinh ^{-1}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )-i a e^2 g^2 \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} (f+g x)^{3/2} \Pi \left (\frac {\sqrt {c} (e f-d g)}{e \left (\sqrt {c} f+i \sqrt {a} g\right )};i \sinh ^{-1}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )\right )}{e^2 g^2 \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (e f-d g) \sqrt {f+g x} \sqrt {a+c x^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + c*x^2]/((d + e*x)*Sqrt[f + g*x]),x]

[Out]

(-2*(-(c*e^2*f^3*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]) + c*d*e*f^2*g*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]] - a*e^2*f*g^
2*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]] + a*d*e*g^3*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]] + 2*c*e^2*f^2*Sqrt[-f - (I*Sqr
t[a]*g)/Sqrt[c]]*(f + g*x) - 2*c*d*e*f*g*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]*(f + g*x) - c*e^2*f*Sqrt[-f - (I*Sqr
t[a]*g)/Sqrt[c]]*(f + g*x)^2 + c*d*e*g*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]*(f + g*x)^2 + Sqrt[c]*e*((-I)*Sqrt[c]*
f + Sqrt[a]*g)*(-(e*f) + d*g)*Sqrt[(g*((I*Sqrt[a])/Sqrt[c] + x))/(f + g*x)]*Sqrt[-(((I*Sqrt[a]*g)/Sqrt[c] - g*
x)/(f + g*x))]*(f + g*x)^(3/2)*EllipticE[I*ArcSinh[Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]/Sqrt[f + g*x]], (Sqrt[c]*f
 - I*Sqrt[a]*g)/(Sqrt[c]*f + I*Sqrt[a]*g)] + e*(I*Sqrt[c]*d + Sqrt[a]*e)*g*(Sqrt[c]*f + I*Sqrt[a]*g)*Sqrt[(g*(
(I*Sqrt[a])/Sqrt[c] + x))/(f + g*x)]*Sqrt[-(((I*Sqrt[a]*g)/Sqrt[c] - g*x)/(f + g*x))]*(f + g*x)^(3/2)*Elliptic
F[I*ArcSinh[Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]/Sqrt[f + g*x]], (Sqrt[c]*f - I*Sqrt[a]*g)/(Sqrt[c]*f + I*Sqrt[a]*
g)] - I*c*d^2*g^2*Sqrt[(g*((I*Sqrt[a])/Sqrt[c] + x))/(f + g*x)]*Sqrt[-(((I*Sqrt[a]*g)/Sqrt[c] - g*x)/(f + g*x)
)]*(f + g*x)^(3/2)*EllipticPi[(Sqrt[c]*(e*f - d*g))/(e*(Sqrt[c]*f + I*Sqrt[a]*g)), I*ArcSinh[Sqrt[-f - (I*Sqrt
[a]*g)/Sqrt[c]]/Sqrt[f + g*x]], (Sqrt[c]*f - I*Sqrt[a]*g)/(Sqrt[c]*f + I*Sqrt[a]*g)] - I*a*e^2*g^2*Sqrt[(g*((I
*Sqrt[a])/Sqrt[c] + x))/(f + g*x)]*Sqrt[-(((I*Sqrt[a]*g)/Sqrt[c] - g*x)/(f + g*x))]*(f + g*x)^(3/2)*EllipticPi
[(Sqrt[c]*(e*f - d*g))/(e*(Sqrt[c]*f + I*Sqrt[a]*g)), I*ArcSinh[Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]/Sqrt[f + g*x]
], (Sqrt[c]*f - I*Sqrt[a]*g)/(Sqrt[c]*f + I*Sqrt[a]*g)]))/(e^2*g^2*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]*(e*f - d*g
)*Sqrt[f + g*x]*Sqrt[a + c*x^2])

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1215\) vs. \(2(386)=772\).
time = 0.12, size = 1216, normalized size = 2.57

method result size
elliptic \(\frac {\sqrt {\left (g x +f \right ) \left (c \,x^{2}+a \right )}\, \left (-\frac {2 c d \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \EllipticF \left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{e^{2} \sqrt {c g \,x^{3}+c f \,x^{2}+a g x +f a}}+\frac {2 c \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \left (\left (-\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \EllipticE \left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )+\frac {\sqrt {-a c}\, \EllipticF \left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{c}\right )}{e \sqrt {c g \,x^{3}+c f \,x^{2}+a g x +f a}}+\frac {2 \left (a \,e^{2}+c \,d^{2}\right ) \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \EllipticPi \left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {d}{e}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{e^{3} \sqrt {c g \,x^{3}+c f \,x^{2}+a g x +f a}\, \left (-\frac {f}{g}+\frac {d}{e}\right )}\right )}{\sqrt {g x +f}\, \sqrt {c \,x^{2}+a}}\) \(833\)
default \(\frac {2 \left (\sqrt {-a c}\, \EllipticF \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) c \,d^{2} g^{3}-\sqrt {-a c}\, \EllipticF \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) c \,e^{2} f^{2} g -\sqrt {-a c}\, \EllipticPi \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \frac {\left (g \sqrt {-a c}-c f \right ) e}{c \left (d g -e f \right )}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) a \,e^{2} g^{3}-\sqrt {-a c}\, \EllipticPi \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \frac {\left (g \sqrt {-a c}-c f \right ) e}{c \left (d g -e f \right )}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) c \,d^{2} g^{3}+a c \EllipticF \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) d e \,g^{3}-a c \EllipticF \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) e^{2} f \,g^{2}-\EllipticF \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) c^{2} d^{2} f \,g^{2}+\EllipticF \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) c^{2} d e \,f^{2} g -a c \EllipticE \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) d e \,g^{3}+a c \EllipticE \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) e^{2} f \,g^{2}-\EllipticE \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) c^{2} d e \,f^{2} g +\EllipticE \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) c^{2} e^{2} f^{3}+\EllipticPi \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \frac {\left (g \sqrt {-a c}-c f \right ) e}{c \left (d g -e f \right )}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) a c \,e^{2} f \,g^{2}+\EllipticPi \left (\sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}, \frac {\left (g \sqrt {-a c}-c f \right ) e}{c \left (d g -e f \right )}, \sqrt {-\frac {g \sqrt {-a c}-c f}{g \sqrt {-a c}+c f}}\right ) c^{2} d^{2} f \,g^{2}\right ) \sqrt {\frac {\left (c x +\sqrt {-a c}\right ) g}{g \sqrt {-a c}-c f}}\, \sqrt {\frac {\left (-c x +\sqrt {-a c}\right ) g}{g \sqrt {-a c}+c f}}\, \sqrt {-\frac {\left (g x +f \right ) c}{g \sqrt {-a c}-c f}}\, \sqrt {g x +f}\, \sqrt {c \,x^{2}+a}}{g^{2} c \,e^{2} \left (d g -e f \right ) \left (c g \,x^{3}+c f \,x^{2}+a g x +f a \right )}\) \(1216\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^2+a)^(1/2)/(e*x+d)/(g*x+f)^(1/2),x,method=_RETURNVERBOSE)

[Out]

2*((-a*c)^(1/2)*EllipticF((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(-(g*(-a*c)^(1/2)-c*f)/(g*(-a*c)^(1/2)+c*f))
^(1/2))*c*d^2*g^3-(-a*c)^(1/2)*EllipticF((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(-(g*(-a*c)^(1/2)-c*f)/(g*(-a
*c)^(1/2)+c*f))^(1/2))*c*e^2*f^2*g-(-a*c)^(1/2)*EllipticPi((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(g*(-a*c)^(
1/2)-c*f)*e/c/(d*g-e*f),(-(g*(-a*c)^(1/2)-c*f)/(g*(-a*c)^(1/2)+c*f))^(1/2))*a*e^2*g^3-(-a*c)^(1/2)*EllipticPi(
(-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(g*(-a*c)^(1/2)-c*f)*e/c/(d*g-e*f),(-(g*(-a*c)^(1/2)-c*f)/(g*(-a*c)^(1
/2)+c*f))^(1/2))*c*d^2*g^3+a*c*EllipticF((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(-(g*(-a*c)^(1/2)-c*f)/(g*(-a
*c)^(1/2)+c*f))^(1/2))*d*e*g^3-a*c*EllipticF((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(-(g*(-a*c)^(1/2)-c*f)/(g
*(-a*c)^(1/2)+c*f))^(1/2))*e^2*f*g^2-EllipticF((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(-(g*(-a*c)^(1/2)-c*f)/
(g*(-a*c)^(1/2)+c*f))^(1/2))*c^2*d^2*f*g^2+EllipticF((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(-(g*(-a*c)^(1/2)
-c*f)/(g*(-a*c)^(1/2)+c*f))^(1/2))*c^2*d*e*f^2*g-a*c*EllipticE((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(-(g*(-
a*c)^(1/2)-c*f)/(g*(-a*c)^(1/2)+c*f))^(1/2))*d*e*g^3+a*c*EllipticE((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(-(
g*(-a*c)^(1/2)-c*f)/(g*(-a*c)^(1/2)+c*f))^(1/2))*e^2*f*g^2-EllipticE((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(
-(g*(-a*c)^(1/2)-c*f)/(g*(-a*c)^(1/2)+c*f))^(1/2))*c^2*d*e*f^2*g+EllipticE((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(
1/2),(-(g*(-a*c)^(1/2)-c*f)/(g*(-a*c)^(1/2)+c*f))^(1/2))*c^2*e^2*f^3+EllipticPi((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*
f))^(1/2),(g*(-a*c)^(1/2)-c*f)*e/c/(d*g-e*f),(-(g*(-a*c)^(1/2)-c*f)/(g*(-a*c)^(1/2)+c*f))^(1/2))*a*c*e^2*f*g^2
+EllipticPi((-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2),(g*(-a*c)^(1/2)-c*f)*e/c/(d*g-e*f),(-(g*(-a*c)^(1/2)-c*f)/
(g*(-a*c)^(1/2)+c*f))^(1/2))*c^2*d^2*f*g^2)*((c*x+(-a*c)^(1/2))*g/(g*(-a*c)^(1/2)-c*f))^(1/2)*((-c*x+(-a*c)^(1
/2))*g/(g*(-a*c)^(1/2)+c*f))^(1/2)*(-(g*x+f)*c/(g*(-a*c)^(1/2)-c*f))^(1/2)*(g*x+f)^(1/2)*(c*x^2+a)^(1/2)/g^2/c
/e^2/(d*g-e*f)/(c*g*x^3+c*f*x^2+a*g*x+a*f)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)^(1/2)/(e*x+d)/(g*x+f)^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(c*x^2 + a)/(sqrt(g*x + f)*(x*e + d)), x)

________________________________________________________________________________________

Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)^(1/2)/(e*x+d)/(g*x+f)^(1/2),x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a + c x^{2}}}{\left (d + e x\right ) \sqrt {f + g x}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**2+a)**(1/2)/(e*x+d)/(g*x+f)**(1/2),x)

[Out]

Integral(sqrt(a + c*x**2)/((d + e*x)*sqrt(f + g*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)^(1/2)/(e*x+d)/(g*x+f)^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(c*x^2 + a)/(sqrt(g*x + f)*(x*e + d)), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {c\,x^2+a}}{\sqrt {f+g\,x}\,\left (d+e\,x\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + c*x^2)^(1/2)/((f + g*x)^(1/2)*(d + e*x)),x)

[Out]

int((a + c*x^2)^(1/2)/((f + g*x)^(1/2)*(d + e*x)), x)

________________________________________________________________________________________